function GetXmlHttpObject() {
    var xmlHttp = null;
    try {
  // Firefox, Opera 8.0+, Safari
        xmlHttp = new XMLHttpRequest();
    }
    catch (e) {
  // Internet Explorer
        try {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e) {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}

function stateChanged(xmlHttp, contentDivId) {
    if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
      
        document.getElementById(contentDivId).innerHTML = xmlHttp.responseText;
    }
}

function getContent(url, cotentdivId) {
			
		    var xmlHttp=null;
		    xmlHttp = GetXmlHttpObject();
		    if (xmlHttp == null) {
		        alert("can't get ajax object!");
		        return;
		    }  
    xmlHttp.onreadystatechange = function () {
        stateChanged(xmlHttp, cotentdivId);
    };   
    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}







